<script language="javascript" type="text/javascript">
<!--
	function __doPostBack(eventTarget, eventArgument) {
		alert('a');
		var theform;
		if (window.navigator.appName.toLowerCase().indexOf("microsoft") > -1) {
			theform = document.T17_1;
		}
		else {
			theform = document.forms["T17_1"];
		}
		theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
		theform.__EVENTARGUMENT.value = eventArgument;
		theform.submit();
	}
// -->
</script>
<!--  
javascript:__doPostBack('WebControl3$PresentationModeControlsContainer$_ctl0$AToZSearch$AtoZ_num','')
javascript:__doPostBack('WebControl3&PresentationModeControlsContainer=_ctl0&AToZSearch=AtoZ_num','')
javascript:__doPostBack('WebControl3$PresentationModeControlsContainer$_ctl0$G1$_ctl3$Linkbutton1','')	
javascript:__doPostBack('WebControl3$PresentationModeControlsContainer$_ctl0$G1$_ctl4$Linkbutton1','')
 -->
<?php
class CurlController extends AppController {
	var $name = 'Curl' ;
	var $components = array ( 'strings' ) ;
	
	function index () {
		
		//		$this->Curl->url = 'http://www.iii.co.uk/investment/detail?code=cotn:ABBY.L&display=fundamentals&it=le';		$this->Curl->url = 'http://www.londonstockexchange.com/en-gb/pricesnews/prices/system/detailedprices.htm?sym=CY0009731015GBGBXAIMIB0T9W78XXIC' ;
		lg ( $this->Curl->url ) ;
		
		//		$this->Curl->followLocation = true ; // Make sure you use a boolean here, my class will do type checking		$this->Curl->userAgent = 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20060601 Firefox/2.0.0.1 (Ubuntu-edgy)' ;
		$this->Curl->execute () ; // execute() returns the output instead of writing it straight to the page like normal cURL		

		preg_match_all ( '@\?id=\d{7}@', $this->Curl->output, $data ) ;
		
		$data['company_name'] = $this->Curl->grabInside('</A>
			<br>','|');
		
		$data [ 'Trading information' ] = '<table cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr class="resultstablehead1">
					<td class="resultstablecellhead1" colspan="5">' . $this->Curl->grab ( 'Trading information', '</table>' ) ;
		$this->Curl->output = $this->removeTags ( $this->Curl->output ) ;
		$data [ 'Company information' ] = $this->Curl->grabInside ( 'Company information', 'Company address' ) ; // Matches the first set of these, and returns whats in between		$data [ 'Company address' ] = $this->Curl->grabInside ( 'Company address', 'Company website' ) ;
		$data [ 'Company website' ] = $this->Curl->grabInside ( 'Company website', 'Market cap (in millions)*' ) ;
		$data [ 'Market cap (in millions)*' ] = $this->Curl->grabInside ( 'Market cap (in millions)*', 'Listing date' ) ;
		
		/*	foreach ( $data [ 0 ] as &$id ) {
			$url = 'http://www.londonstockexchange.com/LSECWS/IFSPages/MarketNewsPopup.aspx' . $id . '&source=RNS' ;					
			$this->Curl->url = $url ;
			$this->Curl->execute () ;
			$id = $this->removeTags( $this->Curl->output );
		}
	*/
		//		lg($this->Curl->output);		

		lg ( $data ) ;
	
	}
	
	function first () {
		$this->Curl->post = true ; // Set options like this, for a list of new names, see the array below organised by type				$this->Curl->postFieldsArray = array ( '__EVENTTARGET' => 'WebControl3:PresentationModeControlsContainer:_ctl0:G1:_ctl3:Linkbutton1' , 
		'__VIEWSTATE' => ' 0r/scnOgCrBUIQ/DQyQQII6VdYnFKa2J614KSEyTW1HBmaMcCHdatwP0FEUDL2nUbd9d8e/+Ti2hTWIlBrREcI2nIGsfQ0bqfrndrNoTmOIniO5iRioMDKU9pqcDgHbNTe68F1W3hYNx5Su+0vsg0nfANPWv1zdy/fQoC3PJlmc+JAtyEedAyIFeraOmXgrjWFC75+sghTcc4Hn+/lCkKuGpLfNoIWs/9YjbEkKm//hQVpUa1MXWKH1jNTuUXRZPG1ZvSB5crlSn/j2BjO2+Y85NXQbopGweub2g/AJJGQwnpQ8On0a3Kg21VEBpsITGhuYr6VOB1EYYXsffhoaESuNWFavC6YieYyfYf3Voc/ALSnVzVOw9tPHJuhZyjWMWSdLr0Q/Q+sYz6AziXZy5ZGQtWkAG3TFX/wB45WIMsyAOkqjIdzSpsUw6vpvr1v9SD6AX3V2xCRVeFB2zomzfM3Q9NfojN++CrKGMzUQz0nJpfWAMhI2viI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oqqEwL3sx8amO/lRi4hY9btbO8Hxvn9SofrXETDQ3Egf143MeCdDNtrZsIad6eihElR+AEJVBCaYXzskwPdUjQcCyaTjZYgmGfaWaYnRQg3TbyaBJWL3U8Ss+rJ1ZiqTweycgxb1G9RZXx5lFlLre0ZtHisR8RCeBTdAwweWQEuAzBS6gJjLlWI7bGVwLtOnpd/gLmL5z85b5RFuGfm0N7b+4I7YsKbWzJF/PoySsNZIRK8X4YOp3iE2KG0Qcq4AG5KJ8iRmVNHpjGJEoC+aYSN2gflr7681+feSMv4NYCfzmbsgPeUCVeKumVbdynWM9rbY2l2ZrDqo6s6XGMLVStFbIALyojUYaVahfHYRcF6F2bCnKb7B/Piywn3Y1CUKOXuPiusGJqFwHPXv1Dx886zt+55beEBxnJNvOKGl8ibTddRy5PDDnGi0I6TmYkVnb2uXNxL/5EL1bZD24xbJJ5UfiO7TkOGg28mrf9e1AfMLs5PDf1a54f3SfQ9VnLFvay6INMSEz0Pbgl8niilPuLMSDVRW/u9XhXCopd+aQ1gmYekYT7RkHH7MM59Xsclx1N8pb5OD6DquNR6Z7nW+z4XoDhovMi0o3hIUhzPTw9/eey4cBvm9GkmQGP7Tf/2+63HvyLjwKXV/XwZWZl4lFR1GyQ6S374guve89yNH' , '__EVENTARGUMENT' => '' ) ; // This urlencode post data for you				

		$this->Curl->url = 'http://www.londonstockexchange.com/en-gb/products/companyservices/ourmarkets/aim_new/Trade+and+Investing/aim+company+search.htm' ;
		
		lg ( $this->Curl->url ) ;
		$this->Curl->followLocation = true ; // Make sure you use a boolean here, my class will do type checking		$this->Curl->userAgent = 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20060601 Firefox/2.0.0.1 (Ubuntu-edgy)' ;
		$this->Curl->execute () ; // execute() returns the output instead of writing it straight to the page like normal
				lg($this->Curl->grabInside ( '<script>window.open(\'', ' \')</script>' ));

		lg ( $this->Curl->output ) ;
	
	}
	
	function second () {
		$this->Curl->post = true ; // Set options like this, for a list of new names, see the array below organised by type				$this->Curl->postFieldsArray = array ( '__EVENTTARGET' => 'WebControl3:PresentationModeControlsContainer:_ctl0:G1:_ctl6:Linkbutton1' , '__VIEWSTATE' => '0r/scnOgCrBUIQ/DQyQQII6VdYnFKa2J614KSEyTW1HBmaMcCHdatwP0FEUDL2nUbd9d8e/+Ti2hTWIlBrREcI2nIGsfQ0bqfrndrNoTmOIniO5iRioMDKU9pqcDgHbNTe68F1W3hYNx5Su+0vsg0nfANPWv1zdy/fQoC3PJlmc+JAtyEedAyIFeraOmXgrjWFC75+sghTcc4Hn+/lCkKuGpLfNoIWs/9YjbEkKm//hQVpUa1MXWKE/MOqD8CHS1hh0191RpGxwrMz2Jxp803oqmkfMaKRI/nlRzFj4YXEm0F7U2R/6wFy/PUO82qMoxAC1dDZ8+4IrBZ6ilX4t+TGNcYKIRuZhh6vTOa9M+L0RjKejc/M2na8mWTBLFBFqQDmtcwMAnhGZs3PDf2YFLgX1wkDur/E1e/n68AOCm45JydhZ55JrR4pgVvcRC4VuTiCi3NO+R8yzijpe2ITioLuGVGavbhIOLYpuET/3+vMBOoRB19ajTTtQQlZDGujCowa1x2pW8gUfY6C8+58gnM6Edr0HqADKm4kKPO8cKNQurwWODkAMNwX77LtER5iUTbmerPUYiyANrmUHhmQszoI+EZLgG7+R4R4KD2SvOq1uMlhh7xZqmnPnlFLunEf56Mpa7vEp5ktHkMZsUH7jNHShh5p4qx8VjIYOr11NKQi/p4Bl0JeLqn2JxWKUrLE124h5jvNQLfHns+jv/ZyGk8NYfdR6DAGnpN7JaGl/hm4cNNi5QPf4a07ipgsq+KSIeLEwFsfyhAvaPcSW8SPhlcdQ8IOLJ0KF2ftHd0Dqz6Ug4LSnIPlxnE6hghsVF86etSyLsuCTcbA40LFoNjU9EOXiq0qcf17qPcug6B/z2JclMejRv1Yn+TnB+4osXkau1/bwetuSWW2H1U6gNPDJSqNSTJB5JKNbQyGfNaBgF7xv3l2686depEPLSQrBG5TxNP9rKjDz8Z4Y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Kd6z/V3oc2pSAg6md91d5faYXPVIKQEupGsteZs6uOT/DnabvOXy7cXjfxzdS+XoB3z2oy2QN8LsiIAEXqaEvlHPgtYXaz+/WD9P3zFtyPYtHpcGH5BwtxR397L+F84hJ8dNbB1Vzl4fUQNWPWqjjTn6xoa4F72u+JvGxAOA5xBFmI6wApb6Sw292JK0Acr3ADebZrXpCGlQQQclwYY0Ac/dmCe5XEg3YOOMJG3uaearm6WKclp+JIdx
)' , '__EVENTARGUMENT' => '' ) ; // This urlencode post data for you				

		$this->Curl->url = 'http://www.londonstockexchange.com/en-gb/products/companyservices/ourmarkets/aim_new/Trade+and+Investing/aim+company+search.htm' ;
		lg ( $this->Curl->url ) ;
		$this->Curl->followLocation = true ; // Make sure you use a boolean here, my class will do type checking		$this->Curl->userAgent = 'Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.1) Gecko/20060601 Firefox/2.0.0.1 (Ubuntu-edgy)' ;
		$this->Curl->execute () ; // execute() returns the output instead of writing it straight to the page like normal		
		lg ( $this->Curl->output ) ;	
	}
	
	function removeTags ( &$siteSource ) {
		// comments		$siteSource = preg_replace ( '|<!--[^\-]+-->|', '', $siteSource ) ;
		
		//iframe		//		$siteSource = preg_replace(  '|<iframe[^\-]+iframe>|', '', $siteSource);		

		//jscript		$siteSource = preg_replace ( '|<script [^\-]+script>|', '', $siteSource ) ;
		
		return preg_replace ( '/<[^>]*>/', ' ', $siteSource ) ;
	}

}
?>